package com.tuishan.myapplication.Utils;

import com.blankj.utilcode.util.LogUtils;
import com.qiniu.util.Auth;
import com.tuishan.myapplication.Base.BaseContest;

/**
 * <pre>
 *     time   : 2021/04/18
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class QiNiuUtils {
    public  static String GetQiNiuToken(){
        String accessKey = BaseContest.QiNiuAccessKey;
        String secretKey = BaseContest.QiNiuSecretKey;
        String bucket = BaseContest.QiNiuBucket;
        Auth auth = Auth.create(accessKey, secretKey);
        String upToken = auth.uploadToken(bucket);
        return  upToken;
    }
}
